package 俄罗斯方块接口.stack;

public class Stack {
	
	public static boolean body_stack[][] = new boolean[15][10];
	
	public static String string[][] = new String[15][10];
	
	public Stack(){
		init();
	}

	/*
	 * 初始化数组
	 */
	public void init() {
		for (int i = 0; i < 15; i++) {
			for (int j = 0; j < 10; j++) {
				body_stack[i][j] = false;
			}
		}
	}

	/*
	 * 判断数组
	 */
	public void choice() {
		for (int i = 0; i < 15; i++) {
			for (int j = 0; j < 10; j++) {
				if (body_stack[i][j] == false) {
					string[i][j] = "0";
				} else {
					string[i][j] = "#";
				}
			}
		}
	}

	/*
	 * 打印数组
	 */
	public void print() {
		choice();
		for (int i = 0; i < 15; i++) {
			for (int j = 0; j < 10; j++) {
				System.out.print(string[i][j]);
			}
			System.out.println();
		}
		System.out.println("----------------------------");
	}
	
	public static void main(String[] args) {
		Stack s = new Stack();
		s.print();
	}
}
